You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > Find Method > TMtxVec.Find Method ([In] double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.Find Method ([In] double)

Finds a match for X in object values.

Syntax
C#
Visual Basic
public int Find([In] double x);

the index of last matched element. If no matching elements are found, the result is -1.

Compare real value X with all calling object elements. 

Note This method also supports the NAN and INF search.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a; MtxVec.CreateIt(out a); try { a.SetIt(false, new double[] {2,5,1,6}); int indes = a.Find(1.0); // returns 2 (the arrays are zero based) } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!